//放具体请求函数名

//引入ajax
import utils from "./utils.js";
let baseUrl = "http://website.bluej.cn";
let api = {
    login:baseUrl+"/api/admin/login",
    banner:baseUrl+"/api/carouselGroup/getAllCarouselGroup"
}
//登录请求
export function login(){
    let data = {
    phone:"15119494282",
    password:"123456Czl."
    }
    return  utils.myAjax(api.login,"POST",data)
}
//轮播图请求
export function getBanner(){
      let data = {}
      let token = localStorage.getItem('token')
      return utils.myAjax(api.banner,"GET",data,token)
}
//新闻请求